package com.freesky.web.manager.remote.order.fallback;

import com.freesky.common.pojo.ZTreeNode;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.common.dao.entity.ItemCat;
import com.freesky.web.manager.remote.order.ItemCatRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ItemCatRemoteFallback implements ItemCatRemote {
    private Logger logger = LoggerFactory.getLogger(ItemCatRemoteFallback.class);

    @Override
    public List<ZTreeNode> getItemCatList(int parentId) {
        logger.error("商品分类服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse addItemCategory(ItemCat itemCat) {
        logger.error("商品分类服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse updateItemCategory(ItemCat itemCat) {
        logger.error("商品分类服务调用出故障了");
        return null;
    }

    @Override
    public JSONResponse deleteItemCategory(Long id) {
        logger.error("商品分类服务调用出故障了");
        return null;
    }
}
